package com.igeek.service;

import com.igeek.dao.UserDaoImpl;
import com.igeek.dao.UserDaoImpl1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import javax.inject.Inject;
import javax.inject.Named;

@Component
public class UserServiceImpl1 {
    @Inject
    @Named("userDaoImpl1")
    private UserDaoImpl1 userDaoImpl1;

    //保存业务方法
    public void save(){
        System.out.println("UserServiceImpl1业务层被调用了。。。");
        userDaoImpl1.save();
    }
}
